<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en" class="no-js">
<!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
<meta charset="utf-8" />
<title>会员管理 - 所有上级</title>
<?php include($this->c['_homes']['_viewsHome'].'/_global/_head.php');?>
</head>
<!-- BEGIN BODY -->
<body class="page-header-fixed page-sidebar-fixed">
<!-- BEGIN HEADER -->
<?php include($this->c['_homes']['_viewsHome'].'/_global/head.php');?>
<!-- END HEADER -->
<div class="clearfix"></div>
<!-- BEGIN CONTAINER -->
<div class="page-container" > 
  <!-- BEGIN HORIZONTAL MENU PAGE SIDEBAR1 -->
  <?php include($this->c['_homes']['_viewsHome'].'/_global/menu.php');?>
  <!-- END BEGIN HORIZONTAL MENU PAGE SIDEBAR --> 
  <!-- BEGIN PAGE -->
  <div class="page-content"> 
    <!-- BEGIN PAGE HEADER-->
    <div class="row">
      <div class="col-md-12"> 
        <!-- BEGIN PAGE TITLE & BREADCRUMB-->
        <h3 class="page-title"> 所有上级 </h3>
        <ul class="page-breadcrumb breadcrumb">
          <li> <i class="icon-home"></i> <a href="/manage">后台</a> <i class="icon-angle-right"></i> </li>
          <li> 会员管理 <i class="icon-angle-right"></i> </li>
          <li> <a href="/member/memberlist">会员列表</a> <i class="icon-angle-right"></i> </li>
          <li>所有上级</li>
        </ul>
        <!-- END PAGE TITLE & BREADCRUMB--> 
      </div>
    </div>
    <!-- END PAGE HEADER--> 
    <!-- BEGIN PAGE CONTENT-->
    
    <div class="row">
      <div class="col-md-12"> 
        <!-- BEGIN SAMPLE FORM PORTLET-->
        <div class="portlet box blue">
          <div class="portlet-title">
            <div class="caption"> <i class="icon-reorder"></i> 所有上级 </div>
            <div class="tools"> <a href="" class="collapse"></a> </div>
          </div>
          <div class="portlet-body form">
            <form method="post" class="form-horizontal" action="">
              <div class="form-body">

                <div class="form-group">
                  <label class="col-md-2 control-label"></label>      
                  <div class="col-md-4">
                    <h5>
                      <img src="<?=str_replace("/0", "/132", $this->user['headimgurl']);?>" width="45">
                      <?=$this->grade[$this->user['member_gradeid']];?>
                      [<?=$this->user['uid'];?>]
                      <?=$this->user['nickname'];?>(<strong><?=$this->user['realname'];?></strong>)
                    </h5>
                  </div>
                </div>
                <hr>
                <?php
                if($this->parents){
                  foreach($this->parents as $r){
                    ?>
                    <div class="form-group">
                      <label class="col-md-2 control-label">↓</label>      
                      <div class="col-md-10">
                        <h5>
                          <img src="<?=str_replace("/0", "/132", $r['headimgurl']);?>" width="45">
                          <?=$this->grade[$r['member_gradeid']];?>
                          [<?=$r['uid'];?>]
                          <?=$r['nickname'];?>(<strong><?=$r['realname'];?></strong>) 本月：<?=$r['month_sales'];?> 业绩：<?=$r['total_sales'];?> 分成：<?=$r['total_commission'];?> 消费：<?=$r['total_buy'];?>
                        </h5>
                      </div>
                    </div>
                    <?
                  }
                }
                else{
                 ?>
                 <div class="form-group">
                  <label class="col-md-3 control-label"></label>
                  <div class="col-md-9">
                        <h5>无上级</h5>
                  </div>
                </div>
                 <? 
                }
                ?>                
              </div>
              <div class="form-actions fluid">
                <div class="col-md-offset-3 col-md-9">
                  <button type="button" class="btn blue" onClick="history.back(1);">返回</button>
                </div>
              </div>
            </form>
          </div>
        </div>
        <!-- END SAMPLE FORM PORTLET--> 
        
      </div>
    </div>
    <!-- END PAGE CONTENT--> 
  </div>
  <!-- END PAGE --> 
</div>
<!-- END CONTAINER -->
<?php include($this->c['_homes']['_viewsHome'].'/_global/_footer.php');?>
<script>
jQuery(document).ready(function() {    
   App.init();
   
});
</script> 
<!-- END JAVASCRIPTS -->
</body>
<!-- END BODY -->
</html>